import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      redirect: '/123',
      component: resolve => require(['../components/common/Home.vue'], resolve),
      children: [
        {
          path: '/homepage',
          component: resolve => require(['../components/page/Homepage.vue'], resolve)
        },
        {
          path: '/head',
          component: resolve => require(['../components/common/Homepanel.vue'], resolve),
          children: [
            {
              path: '/123',
              component: resolve => require(['../components/HelloWorld.vue'], resolve)
            }
          ]
        },
        {
          path: '/kcxq',
          component: resolve => require(['../components/common/classinfor.vue'], resolve)
        },
        {
          path: '/Course',
          component: resolve => require(['../components/page/01-2Oncourse.vue'], resolve)
        },
        {
          path: '/3',
          component: resolve => require(['../components/page/01-2Oncourse.vue'], resolve)
        },
        {
          path: '/02-1',
          component: resolve => require(['../components/page/02-1Course management.vue'], resolve)
        }
      ]
    }
  ]
})
